package com.cxb.entity;

public class Gps {

	@Override
	public String toString() {
		return "Gps [id=" + id + ", lat=" + lat + ", lng=" + lng + ", mode="
				+ mode + ", pdop=" + pdop + ", hdop=" + hdop + ", vdop=" + vdop
				+ ", angle=" + angle + ", speed=" + speed + ", height="
				+ height + ", direction=" + direction + ", time=" + time
				+ ", sateliteCount=" + sateliteCount + ", magneticN="
				+ magneticN + "]";
	}
	public int getSateliteCount() {
		return sateliteCount;
	}
	public void setSateliteCount(int sateliteCount) {
		this.sateliteCount = sateliteCount;
	}
	public float getMagneticN() {
		return magneticN;
	}
	public void setMagneticN(float magneticN) {
		this.magneticN = magneticN;
	}
	public int id;
	public double lat;
	public double lng;
	public int mode;
	public float pdop;
	public float hdop;
	public float vdop;
	public float angle;
	public float speed;
	public double height;
	public double direction;
	public String time;
	public int sateliteCount;
	public float magneticN;//磁北方向
	public int getScore() {
		int score = 0;
		if (lat != 0 && lng != 0) {
			score += 1;
		}
		score += mode;
		score += pdop;
		return score;
	}
}
